


function delay(ms) {
    return new Promise((resolve,reject)=>{
        setTimeout(()=>{
            resolve(100);
        },ms);
    });
}


async function start() {
    console.log('------start');
    let ret = await delay(2000);
    console.log('ret:',ret);
}

start();


